#if (PARTHUS_TESTER==1)
#ifndef _PARTHUS_TESTER_CODE_
#define  _PARTHUS_TESTER_CODE_

/******************************************************************************
 * MODULE NAME:		tester_code.h 
 * PROJECT CODE:	BlueStream
 * DESCRIPTION:		header file for tester_code.c which handles LMP tasks 
 *					required to emulate a tester
 * MAINTAINER:		Raymond Burke
 * CREATION DATE:   01-August-2000  
 *
 * SOURCE CONTROL: $Id: tester_code.h,v 1.1 2008/02/03 09:39:35 james Exp $
 *
 * LICENSE:
 *     This source code is copyright (c) 2000-2004 Ceva Inc.
 *     All rights reserved.
 *
 * REVISION HISTORY:
 *	01-August-2000	RGB		Initial Version
 *
 ******************************************************************************/

/*#include "sys_types.h"
#include "lmp_types.h"*/
#include "lmp_const.h"
#include "lmp_acl_connection.h"

/* new HCI events for tester only */
#define HCI_TEST_ACTIVATE_COMPLETE_EVENT		0xF0
#define HCI_TEST_CONTROL_COMPLETE_EVENT		0xF1

t_error Tester_LMP_Send_Test_Activate(t_p_pdu test_activate);
t_error Tester_LMP_Send_Test_Control(t_p_pdu test_control);
t_error Tester_Lk_Pol_Set_Poll_Period(t_p_pdu p_payload);
t_error Tester_LMP_Accepted(t_lmp_link* p_link, t_p_pdu p_pdu);
t_error Tester_LMP_Not_Accepted(t_lmp_link* p_link, t_p_pdu p_pdu);

void Tester_Validate_Received_Payload(t_packet packetType, t_length rx_length, t_p_pdu p_payload);
u_int32 Tester_Get_Rx_Valid_Payload_Counter(void);
void Tester_Reset_Rx_Valid_Payload_Counter(void);
boolean Tester_Is_Test_Control_Accept_Received(void);
void Tester_Reset_Test_Control_Accept_Received(void);
boolean Tester_Is_Ack_Poll_Sent(void);
void Tester_Set_Ack_Poll_Sent(void);
void Tester_Reset_Ack_Poll_Sent(void);

#endif
/* end of ifndef _PARTHUS_TESTER_CODE_ */

#endif
/* end of #if (PARTHUS_TESTER==1) */
